-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added TRT config for inference #1907
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Boris Fomitchev <[email protected]>
Signed-off-by: Boris Fomitchev <[email protected]>
"device": "cuda", | ||
"controlnet": "$trt_compile(@controlnet_def.to(@device), @trained_controlnet_path, @c_trt_args)", | ||
"diffusion_unet": "$trt_compile(@diffusion_unet_def.to(@device), @trained_diffusion_path)", | ||
"mask_generation_diffusion": "$trt_compile(@mask_generation_diffusion_def.to(@device), @trained_mask_generation_diffusion_path)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @borisfom , thanks for the changes.
Can I confirm if mask_generation_diffusion
supports TRT? Should we also modify https://github.com/Project-MONAI/model-zoo/blob/dev/models/maisi_ct_generative/configs/inference_trt.json ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well mask_generation_diffusion was never called - it probably is TRT compliant, but never tested.
No need to modify current model-zoo config until we have a config that engages this component.
@yiheng-wang-nv : can we gat back to it ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @borisfom . Could you add one line in README to show that how to run inference with TRT? Then we can merge
Description
Added TRT config for MAISI and the extension of the inference script to handle extra config file.
Note: autoencoder.decoder currently cannot be exported to TRT (crashes during engine generation).
It does not seem to take a big part of the whole run anyway.